// GameResult.h: interface for the CGameResult class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GAMERESULT_H__684A3B82_0D3A_4204_8E1B_DA16B2AFC726__INCLUDED_)
#define AFX_GAMERESULT_H__684A3B82_0D3A_4204_8E1B_DA16B2AFC726__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "xD3D.h"
#include "xTexture.h"
#include "D3DSprite.h"
#include "D3DPlane.h"
#include "PlaneButton.h"

#include "Common.h"

class CResultInfo
{
public:
	int Tot;
	CString TeamName;
	CString ID[MAX_PLAYER];
	int GetPoint[MAX_PLAYER];
	int GetMarble[MAX_PLAYER];

	CResultInfo()
	{
		Reset();
	}

	void Reset()
	{
		Tot = 0;
		for(int i=0; i<MAX_PLAYER; i++) ID[i] = "";
		memset(GetPoint, 0, sizeof(GetPoint));
		memset(GetMarble, 0, sizeof(GetMarble));
	}

	void Add(LPCTSTR id, int getpoint, int getmarble)
	{
		ID[Tot] = id;
		GetPoint[Tot] = getpoint;
		GetMarble[Tot] = getmarble;
		Tot++;
	}
};

class CGameResult  
{
public:
	BOOL bNowDraw;
	int FrameCnt;

	int Result;
	int WinTeam;
	GAMEOVERRESULT GOR[MAX_PLAYER];

	CResultInfo TeamResult[5];

	CGameResult();
	virtual ~CGameResult();

	BOOL SetResult(GAMEOVERRESULT *pgor);
	void Reset();

	void Process();
	void Draw();

};

#endif // !defined(AFX_GAMERESULT_H__684A3B82_0D3A_4204_8E1B_DA16B2AFC726__INCLUDED_)
